home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
moni
/
PriMan20.lha
/
PriMan
/
Source
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-11-03
|
1KB
|
38 lines
#
# Makefile for PriMan 1.2
# Loosely based on SnoopDos's makefile - thanks, Eddy!
#
# Executable name
NAME = PriMan
# Global Symbol Table
GST = System.sym
# Object files produced by compiler and used by linker
OBJS = Main.o Event.o Util.o Window.o
# Libraries we need to link with
LIBS = lib:sc.lib
# Defines how to get from a source to an object file
.c.o:
sc noversion nolink gst=$(GST) $*.c
# Project will be fully made by typing "smake all" (or just "smake")
all: $(NAME)
# Executable is based on the GST and object files, and is created using slink
$(NAME): $(GST) $(OBJS)
slink from lib:c.o $(OBJS) to $(NAME) lib $(LIBS) with lib:utillib.with stripdebug
# GST is based on the system header file, and is created using sc
$(GST): System.h
sc noversion nolink noobjname makegst=$(GST) System.h
# Object files are based on the source and header files, and created as defined above
Main.o: Main.c PriMan.h
Event.o: Event.c PriMan.h
Util.o: Util.c PriMan.h
Window.o: Window.c PriMan.h